package com.hitenine.service;

import com.hitenine.dao.UserMapper;
import com.hitenine.pojo.Users;

public class UserServiceImpl implements UserService{
    /**
     * service层调dao层
     */
    private UserMapper userMapper;

    public int updateUser(Users users) {
        return userMapper.updateUser(users);
    }

    public Users queryUser(Users users) {
        return userMapper.queryUser(users);
    }

    public Users queryUserByID(int userID) {
        return userMapper.queryUserByID(userID);
    }

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }
}
